{% extends 'home/common/base.html' %}
{% block body %}
{% include "home/common/header.html" %}
<div class="position"><a href='/'>主页</a> > <a href="{{url_for('home_category.index', catid=article.category_id)}}">{{article.category.catname}}</a> ></div>
<div class="overall">
    <div class="left">
        <div class="scrap">
            <h1>{{article.title}}</h1>
            <div class="spread">
                <span class="writor">发布时间：{{article.update_time}}</span>
                <span class="writor">编辑：{{article.author}}</span>
                <span class="writor">标签：
                    {% for t in article.tags %}
                    <a href='#'>{{t.tagname}}</a>
                    {% endfor %}
                </span>
                <span class="writor">热度：{{article.click}}</span>
            </div>
        </div>

        <div class="takeaway">
            <span class="btn arr-left"></span>
            <p class="jjxq">{{article.description}}
            </p>
            <span class="btn arr-right"></span>
        </div>

        <div class="substance">
            {{article.content | safe}}
        </div>

        <div class="biaoqian"></div>

        <!--相关阅读 -->
        <div class="xgread">
            <div class="til">
                <h4>相关阅读</h4>
            </div>
            <div class="lef"></div>
            <div class="rig">
                <ul>
                    {% for art in relation%}
                    <li><a href="{{url_for("home_article.index", aid=art.id)}}" >{{art.title}}</a></li>
                    {% endfor %}
                </ul>
            </div>
        </div>

        <!--频道推荐-->
        <div class="hotsnew">
            <div class="til">
                <h4>频道推荐</h4>
            </div>
            <ul>
                {% for art in channel%}
                <li>
                    <div class="tu">
                        <a href='{{url_for("home_article.index", aid=art.id)}}' >
                            <img src="{% if art.pic != '' %}{{art.pic}}{% else %}/static/home/images/error.png{% endif %}" alt="{{art.title}}" />
                        </a>
                    </div>
                    <p><a href='{{url_for("home_article.index", aid=art.id)}}'>{{art.title}}</a></p>
                </li>
                {% endfor %}
            </ul>
        </div>
    </div>
    {% include "home/common/right.html" %}
</div>
{% endblock %}